package com.mutouren.modules.org.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mutouren.common.orm.spring.BaseDao;
import com.mutouren.modules.org.model.Organization;

public interface OrganizationDao extends BaseDao<Organization> {
	List<Organization> selectByIds(Collection<Integer> ids);
	List<Organization> selectByParentId(@Param("parentId")int parentId, @Param("displayLevel") int displayLevel);
	List<Organization> findChildrenByParentIdPath(@Param("parentIdPath") String parentIdPath, @Param("displayLevel") int displayLevel);

	int setState_selfAndChild(Organization org);
}
